/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.command.commandset;

//~--- non-JDK imports --------------------------------------------------------

import javadrone.command.*;

/**
 *
 * @author Nikzzay
 */
public class QuitCommand extends RealTimeCommand {
    public QuitCommand() {
        super(Priority.MAX);
    }

    @Override
    public void execute(CommandExecutor ce) {
        ce.kill();
    }

    public String toString() {
        return "COMMAND: QUIT";
    }

    @Override
    public CommandDescriptor getDescriptor() {
        return CommandDescriptor.QUIT;
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
